package com.example.summary.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by wzn on 2019/2/23.
 */
@Aspect
@Component
public class TestAop {

    /**
     * 数据源拦截的切面
     */
    public static final String POINT_STRING = "execution(* com.example.summary.spring..*.*(..))";

    @Pointcut(value = POINT_STRING)
    public void point() {
    }

    @After(value = "point()")
    public void after(JoinPoint joinPoint) {
        System.out.println("===================================================");
    }
}
